negotiator.actions
Class IllegalAction
java.lang.Object
negotiator.actions.Action
negotiator.actions.IllegalAction
public class IllegalAction
- extends Action
This action represents that the agent did an illegal action
(not fitting the protocol), eg kill his agent.
- Author:
- W.Pasman 17sept08
|
Constructor Summary |
IllegalAction(AgentID agentID,
java.lang.String details)
Specifies that an agent returned an action not
fitting the protocol. |
IllegalAction(java.lang.String details)
Specifies that an agent returned an action not
fitting the protocol. |
|
Method Summary |
java.lang.String |
toString()
Enforces that actions implements a string-representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IllegalAction
public IllegalAction(AgentID agentID,
java.lang.String details)
- Specifies that an agent returned an action not
fitting the protocol.
- Parameters:
agentID - id of agent to blame.details - of the error.
IllegalAction
public IllegalAction(java.lang.String details)
- Specifies that an agent returned an action not
fitting the protocol.
- Parameters:
details - of the error.
toString
public java.lang.String toString()
- Description copied from class:
Action
- Enforces that actions implements a string-representation.
- Specified by:
toString in class Action
- Returns:
- string representation of action: "(IllegalAction-DETAILS)".